package com.world.rickcloudendpoint.models.params.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Map;

/**
 * @description: 通用查询类
 * @author: jlsong
 * @date: 2022/01/09 17:11:43
 * @version: 1.0
 */
@Data
@ApiModel(value = "queryWhere", description = "通用查询类")
public class QueryWhere {

    @ApiModelProperty("过滤表达式:((a|b)&c)|((a&b&d)|e)")
    private String exp;

    @ApiModelProperty("查询因子字典集合，例如：{'a': object, 'b': object, 'c': object, 'd': object, 'e': object}。说明：object->{'field': 'id', 'op': 'eq|neq|gt|lt|gte|lte|in|nin|like', 'value': 1}")
    private Map<String, QueryDsl> dict;
}
